package com.controller;


import com.util.FileUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.io.File;
import java.util.ArrayList;


/**
 * Created by wlc on 2017/11/13.
 */

/**
 * 映射系统主页及用户登录注册部分
 */
@Controller
@RequestMapping(value = "/home",produces = "text/html;charset=UTF-8")
public class HomeController {
    //映射系统主页
    @RequestMapping(value = "/homePage",produces = "text/html;charset=UTF-8")
    public String homePage(){
        return "homePage";
    }

    //映射登录页面
    @RequestMapping(value = "/login",produces = "text/html;charset=UTF-8")
    public ModelAndView login(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("login");
        return modelAndView;
    }

    //映射注册页面
    @RequestMapping(value = "/register",produces = "text/html;charset=UTF-8")
    public ModelAndView register(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("register");
        return modelAndView;
    }

    //映射系统页面
    @RequestMapping(value = "/systemPage",produces = "text/html;charset=UTF-8")
    public ModelAndView systemPage(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("systemPage");
        return modelAndView;
    }
}
